package com.supply.service;

import com.supply.pojo.Role;
import com.supply.req.RoleGroup;
import com.supply.req.RoleReq;

import java.util.List;

public interface RoleService {
    List<Role> queryByCondition(RoleReq roleReq);

    int saveOrUpdate(Role role);

    int deleteById(Long id);

    //设置角色所拥有的权限
    boolean authorizationByRoleId(RoleGroup roleGroup);
}
